package com.tjsinfo.tjsoa.system.bo;

import java.util.List;

import com.tjsinfo.tjsoa.system.vo.TSystemPrivategroup;
import com.tjsinfo.tjsoa.system.vo.TSystemUserprivategroup;




public interface ISystemPrivateGroupBO {
public Integer addSystemPrivateGroup(TSystemPrivategroup systemPrivategroup,List<TSystemUserprivategroup>  systemUserprivategroupList);
	
	public List<TSystemPrivategroup> selectPrivateGroup(Integer first,Integer max);
	
	public Boolean updateSystemPrivateGroup(TSystemPrivategroup systemPrivategroup);
	
	public Boolean deleteSystemPrivateGroup(TSystemPrivategroup systemPrivategroup);
	
	public Integer selectTotalLine();
	
	/**
	 * 组名称是否相同
	 * @param 组名称
	 * @return
	 */
	public Boolean isSameSystemPrivateGroupName(Integer id, String postname);
	
	/**
	 * 查询系统组
	 * @param id
	 * @return
	 */
	public TSystemPrivategroup selectTSystemPrivategroupById(Integer id);
	
	/**
	 * 查询系统用户组
	 * @param id
	 * @return
	 */
	public List<TSystemUserprivategroup> selectTSystemUserPrivategroupById(Integer id);
	
	/**
	 * 删除系统用户组
	 * @param id
	 * @return
	 */
	public Boolean deleteTSystemUserPrivategroupById(Integer id);
	
	/**
	 * 添加系统用户组
	 * @param id
	 * @return
	 */
	public Boolean addTSystemUserPrivategroupById(TSystemUserprivategroup systemUserprivategroup);
}


